﻿@model KXCXW.Web.Models.ChangePasswordModel
@{
    ViewBag.Title = "修改密码";
    Layout = "~/Views/Shared/_ContentLayout.cshtml";
    ViewBag.LeftMenuName = "_LeftForMyInfoList";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="registercontent">
    @using (Html.BeginForm())
    {
        <fieldset style="border: 0px;">
            <div class="field" style="height: 30px">@Html.ValidationSummary(true, "修改密码失败!请更正错误，重试!")</div>
            <div class="field">
                <div class="editor-label">
                    当前密码：
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.OldPassword)
                    @Html.ValidationMessageFor(m => m.OldPassword)
                </div>
                <label>
                    请输入您的当前密码</label>
            </div>
            <div class="field">
                <div class="editor-label">
                    新密码：
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.NewPassword)
                    @Html.ValidationMessageFor(m => m.NewPassword)
                </div>
                <label>
                    新密码至少 @ViewBag.PasswordLength-16 个字符长度，包括字母、数字、下划线</label>
            </div>
            <div class="field">
                <div class="editor-label">
                    确认密码：
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
                <label>
                    请再一次输入您的新密码</label>
            </div>
            <div style="float: left; margin-left: 77px; display: inline;">
                <input class="btn_mid" type="submit" value="修改密码" />
            </div>
        </fieldset>
    }
</div>
